import numpy as np
import cv2

img1 = cv2.imread("C:\\Users\\86191\\Pictures\\Saved Pictures\\Camera Roll\\kc.jpg")
print(img1.shape)
img2 = np.ones((500, 857, 3),np.uint8) * 120
# 图像加
result = cv2.add(img1,img2)
# 图像减
org_1 = cv2.subtract(result,img2)
# 图像乘
org_2 = cv2.multiply(result,img2)
# 图像除
org_3 = cv2.divide(org_2,img2)
cv2.imshow("img1",img1)
#cv2.imshow("result",result)
#cv2.imshow("org_1",org_1)
#cv2.imshow("org_2",org_2)
cv2.imshow("org_3",org_3)
cv2.waitKey(0)
